<script type="text/javascript">
<!--
	var msg = '{$msg}';
	if(msg != ""){
		if(msg == '增加成功'){
			alert(msg);
			window.location.href = "/";
		}else{
			alert(msg);
			window.location.href = "/index/index/add/";
		}
	}
//-->
</script>
<h1 align="center">增加留言</h1>
<form action="/index/index/add/" method="post">
	<table>
	<tr>
		<td width="100px">留言姓名</td>
		<td><input type="text" id="msg_name" name="msg_name" /></td>
	</tr>
	<tr>
		<td>留言内容</td>
		<td><textarea name="msg_content" id="msg_content"></textarea></td>
	</tr>
	<tr>
		<td colspan="2"><input type="submit" value="增加"></td>
	</tr>
	</table>
</form>